package com.itheima.service;

import com.itheima.domain.Book;
import com.itheima.domain.User;
import com.itheima.entity.PageResult;

public interface BookService {
    PageResult selectnewbooks(Integer pageNum, Integer pageSize);
    Book findByid(String id);
    Integer borrowerbook(Book book);
    PageResult search(Book book, Integer pageNum, Integer pageSize);
    Integer addbook(Book book);
    Integer editbook(Book book);
    PageResult searchborrowed(Book book, User user, Integer pageNum, Integer pageSize);
    boolean returnbook(String id, User user);
    Integer returnconfirm(String id);
}
